/**
 * Name        : Test
 * Version     : 
 * Vendor      : 
 * Description : 
 */


#include "Beholder.h"
#include "Shooter.h"
#include "Sender.h"

using namespace Osp::App;
using namespace Osp::Base;
using namespace Osp::System;
using namespace Osp::Ui;
using namespace Osp::Ui::Controls;
using namespace Osp::Io;
using namespace Osp::Net::Http;

Beholder::Beholder() {

}

Beholder::~Beholder() {

}

Application*
Beholder::CreateInstance(void)
{
	// Create the instance through the constructor.
	return new Beholder();
}

bool
Beholder::OnAppInitializing(AppRegistry& appRegistry) {

	sender = new Sender();

	AppLog("Test started");

	return true;

}

bool
Beholder::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
{
	AppLog("Terminating");
	return true;
}

void
Beholder::OnForeground(void)
{
	// TODO:
	// Start or resume drawing when the application is moved to the foreground.
}

void
Beholder::OnBackground(void)
{
	// TODO:
	// Stop drawing when the application is moved to the background.
}

void
Beholder::OnLowMemory(void)
{
	// TODO:
	// Free unused resources or close the application.
}

void
Beholder::OnBatteryLevelChanged(BatteryLevel batteryLevel)
{
	// TODO:
	// Handle any changes in battery level here.
	// Stop using multimedia features(camera, mp3 etc.) if the battery level is CRITICAL.
}
